<template>
  <view class="content_list">
    <view class="items" v-for="(item, index) in list" :key="index">
      <view>ID：{{item.id}}</view>
      <view>真实姓名：{{item.realname}}</view>
      <view>业绩：{{item.x_yeji}}</view>
      <view>注册时间：{{item.createtime}}</view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list: [],
      }
    },
    onLoad() {
      this.getData();
    },
    methods: {
      async getData() {
        let {
          data: {
            yaoqing
          }
        } = await this.$myRequest({
          url: '/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=member.userdata.get_yaoqing&app=1',
          data: {
            openid: uni.getStorageSync('openid')
          }
        })
        console.log(yaoqing)
        this.list = yaoqing
      }
    }
  }
</script>

<style lang="scss">
  page {
    background-color: #F3F3F3 !important;
  }

  .items {
    margin-top: 20rpx;
    background-color: #FFFFFF;
    padding: 20rpx 100rpx;

    >view {
      margin-bottom: 10rpx;
    }
  }
</style>
